﻿

var ImgXiao = new SWFUpload({
    upload_url: ImgsAjaxUrl,
    post_params: {
        "ASPSESSID": ASPSESSID,
        "title": title,
        "imgtype":""
    },
    file_post_name: "filedata",
    file_size_limit: "5 MB",
    file_types: "*.gif;*.jpeg;*.png;*.jpg",
    file_types_description: "图片",
    file_upload_limit: 5,    // Zero means unlimited

    file_queue_error_handler: fileQueueError,
    file_dialog_complete_handler: fileDialogComplete,

    upload_error_handler: uploadError,
    upload_success_handler: uploadSuccessDa,////////////////////////////
    upload_complete_handler: uploadComplete,

    button_image_url: ajaxBtnUrl,
    button_placeholder_id: "xiaoSPBH",
    button_width: 74,
    button_height: 22,
    button_text: '<a href="#" class="btn_common fl">上传图片</a>',
    button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 1,
    button_text_left_padding: 5,

    flash_url: ajaxSwfUrl,

    custom_settings: {
        upload_target: "divFileProgressContainer"
    },
    debug: false
});

var Imgzhong = new SWFUpload({
    upload_url: ImgsAjaxUrl,
    post_params: {
        "ASPSESSID": ASPSESSID,
        "title": title,
        "imgtype": "mid"
    },
    file_post_name: "filedata",
    file_size_limit: "5 MB",
    file_types: "*.gif;*.jpeg;*.png;*.jpg",
    file_types_description: "图片",
    file_upload_limit: 5,    // Zero means unlimited

    file_queue_error_handler: fileQueueError,
    file_dialog_complete_handler: fileDialogComplete,

    upload_error_handler: uploadError,
    upload_success_handler: uploadSuccessXiao,///////////////////////////////////
    upload_complete_handler: uploadComplete,

    button_image_url: ajaxBtnUrl,
    button_placeholder_id: "zhongSPBH",
    button_width: 74,
    button_height: 22,
    button_text: '<a href="#" class="btn_common fl">上传图片</a>',
    button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 1,
    button_text_left_padding: 5,

    flash_url: ajaxSwfUrl,

    custom_settings: {
        upload_target: "divFileProgressContainer"
    },
    debug: false
});

var ImgDa = new SWFUpload({
    upload_url: ImgsAjaxUrl,
    post_params: {
        "ASPSESSID": ASPSESSID,
        "title": title,
        "imgtype": "big"
    },
    file_post_name: "filedata",
    file_size_limit: "5 MB",
    file_types: "*.gif;*.jpeg;*.png;*.jpg",
    file_types_description: "图片",
    file_upload_limit: 5,    // Zero means unlimited

    file_queue_error_handler: fileQueueError,
    file_dialog_complete_handler: fileDialogComplete,

    upload_error_handler: uploadError,
    upload_success_handler: uploadSuccessZhong,///////////////////////////////////
    upload_complete_handler: uploadComplete,

    button_image_url: ajaxBtnUrl,
    button_placeholder_id: "daSPBH",
    button_width: 74,
    button_height: 22,
    button_text: '<a href="#" class="btn_common fl">上传图片</a>',
    button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 1,
    button_text_left_padding: 5,

    flash_url: ajaxSwfUrl,

    custom_settings: {
        upload_target: "divFileProgressContainer"
    },
    debug: false
});


